#!/bin/sh

DEMO_ROOT="$( cd "$(dirname "$0")" ; pwd -P)"
echo "demo codebase root is: $DEMO_ROOT"

rm -rf $DEMO_ROOT/build
mkdir -p $DEMO_ROOT/build
cd $DEMO_ROOT/build
cmake -DCMAKE_INSTALL_PREFIX="/" $DEMO_ROOT
make && make install DESTDIR=$DEMO_ROOT